#include <iostream>
#include <array>
#include "fmt/format.h"
using namespace std;


int main() {

    const auto display{
        [](const auto& items) {
            for (const auto& item : items) {
                cout << fmt::format("{} ", item);
            }
            cout << "\n";
        }
    };
    // auto res = sizeof(display);
    // auto res1 = sizeof display;

    const int values1[]{ 10,20,30 };
    const std::array array1{ std::to_array(values1) };

    cout << fmt::format("array1.size()={}\n", array1.size()) << "array1:";
    display(array1);
    cout << "\n";
    const std::array array2{ std::to_array({11,22,33}) };
    cout << fmt::format("array2.size()={}\n", array2.size()) << "array2:";
    display(array2);

    return 0;
}